package com.ruoyi.project.treat.service.impl;

import com.ruoyi.project.treat.domain.TreDepts;
import com.ruoyi.project.treat.mapper.TreDeptsMapper;
import com.ruoyi.project.treat.service.ITreDeptsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TreDeptsServiceImpl implements ITreDeptsService {

    @Autowired
    private TreDeptsMapper treDeptsMapper;

    @Override
    public List<TreDepts> findDeptsAll() {
        return treDeptsMapper.selectDeptsAll();
    }

    @Override
    public List<TreDepts> findByName(String deptsName) {
        return treDeptsMapper.selectByName(deptsName);
    }
}
